package cn.goswan.orient.guohur.api.feign;

import cn.goswan.orient.common.core.constant.SecurityConstants;
import cn.goswan.orient.common.core.constant.ServiceNameConstants;
import cn.goswan.orient.common.core.util.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestHeader;

@FeignClient(contextId = "remoteDicItemService", value = ServiceNameConstants.UPMS_SERVICE)
public interface RemoteDictItemService {
	@GetMapping("/dict/items/{type}")
	R getDictItems(@PathVariable("type") String type
			, @RequestHeader(SecurityConstants.FROM) String from);

}
